package org.base;

import java.util.List;
import javax.faces.context.FacesContext;
import javax.faces.view.ViewScoped;
import javax.inject.Named;

@Named(value = "departamentoController")
@ViewScoped
public class DepartamentoController extends AbstractController<Departamento> {

    private List<Departamento> items; 
    
    public DepartamentoController() {
        // Inform the Abstract parent controller of the concrete Departamento?cap_first Entity
        super(Departamento.class);
    }
    
   @Override
    public List<Departamento> getItems() {
       if (items == null) {
            items = (List<Departamento>)ejbFacade.findAll();
        }
        return items;
    }

    public void setItems(List<Departamento> items) {
        this.items = items;
    }
    
   

      
}
